﻿using System.Net.Mail;
using Castle.Components.Scheduler;


namespace DocumentaWeb.Core.Services
{
	public class Trabajo:IJob
	{
		public bool Execute(JobExecutionContext context)
		{

			MailMessage mm = new MailMessage("latota@santillan.com.ar", "galbarello@.gmail.com");

			////(2) Assign the MailMessage's properties
			mm.Subject = "Informacion";
			mm.Body = "la vida es bella!";
			mm.IsBodyHtml = true;

			////(3) Create the SmtpClient object
			SmtpClient smtp = new SmtpClient();

			////(4) Send the MailMessage (will use the Web.config settings)
			//smtp.Send(mm);

			return true;
		}
	}
}